<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head>
<title>SECCD - Ficha Intra Oral</title>
<link href="<%=request.getContextPath()%>/theme/cssGeneral.css" rel="stylesheet" type="text/css">
<link href="<%=request.getContextPath()%>/theme/cssLink.css" rel="stylesheet" type="text/css">
<link href="<%=request.getContextPath()%>/theme/cssTexto.css" rel="stylesheet" type="text/css">
<link href="<%=request.getContextPath()%>/theme/cssFormulario.css" rel="stylesheet" type="text/css">
<link href="<%=request.getContextPath()%>/theme/cssFormulario.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%= request.getContextPath() %>/js/seccd.js"></script>
<SCRIPT>
function volverArchivo(){
	document.form.optCampo.value="todos";
	document.form.operacion.value="listado";
	document.form.action="cargaListadoHCFiles.do?method=cargaListadoHCFiles";
	document.form.submit(); 
}
function grabar() {
	if(document.form.labios.value==""){
		alert("Debe completar el campo Labios");
		return;
	}
	if(document.form.vestibulo.value==""){
		alert("Debe completar el campo Vestibulo");
		return;
	}
	if(document.form.frenillos.value==""){
		alert("Debe completar el campo Frenillos");
		return;
	}
	if(document.form.paladarDuro.value==""){
		alert("Debe completar el campo Paladar Duro");
		return;
	}
	if(document.form.paladarBlando.value==""){
		alert("Debe completar el campo Paladar Blando");
		return;
	}
	if(document.form.orofaringe.value==""){
		alert("Debe completar el campo Orofaringe");
		return;
	}
	if(document.form.lengua.value==""){
		alert("Debe completar el campo Lengua");
		return;
	}
	if(document.form.pisoDelaBoca.value==""){
		alert("Debe completar el campo Pisola Boca");
		return;
	}
	if(document.form.enciaMarginal.value==""){
		alert("Debe completar el campo Encia Marginal");
		return;
	}
	if(document.form.enciaPapilar.value==""){
		alert("Debe completar el campo Encia Papilar");
		return;
	}
	if(document.form.enciaAdherida.value==""){
		alert("Debe completar el campo Encia Adherida");
		return;
	}
	if(document.form.hendiduraGingival.value==""){
		alert("Debe completar el campo Hendidura Gingival");
		return;
	}
	document.form.action="modificaFichaIntraOralArchivoHC.do";
	if(document.form.operacion.value=='insertar'){
		document.form.method.value="insertaFichaIntraOralArchivoHC";
	}
	if(document.form.operacion.value=='editar'){
		document.form.method.value="editaFichaIntraOralArchivoHC";
	}
	document.form.submit();
}
</SCRIPT>
<c:set var="tempPerfil" value="${sessionScope.USUARIO_LOGEADO.perfil}"/>
</head>
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" onLoad="redimensionar();validaBusquedaPaciente();">
<form name="form" method="post">
<table class="contenedor">
<tr>
	<td height="26" class="texto_celeste_titulo" background="<%=request.getContextPath()%>/images/fondo-imp-email.jpg" style="background-repeat:no-repeat;background-position:right ">
		<c:choose>
 			<c:when test="${sessionScope.estado=='cerrado'}">	
 				Ficha IntraOral de Archivo : <c:out value='${sessionScope.subFileHC}'/>	
 			</c:when>
 			<c:otherwise>
 				<c:if test="${sessionScope.operacion=='insertar'}" >Agregar Ficha IntraOral a Archivo : <c:out value='${sessionScope.subFileHC}'/></c:if>
				<c:if test="${sessionScope.operacion=='editar'}" >Editar Ficha IntraOral de Archivo : <c:out value='${sessionScope.subFileHC}'/></c:if>
 			</c:otherwise>
		</c:choose>
	</td>
</tr>
<tr>
	<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="790" height="10"></td>
</tr>
<tr>
	<td align="left">
	<table cellpadding="0" cellspacing="0" border="0" width="1">
	<tr>
		<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="85" height="1"></td>
		<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
		<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="210" height="1"></td>
		<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="25" height="1"></td>
		<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="100" height="1"></td>
		<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
		<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="340" height="1"></td>
	</tr>
	<tr>
		<td colspan="4"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="1" height="10"></td>
	</tr>
	</table>
	</td>
	</tr>
		<tr>
		<td colspan="7">
		<table cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
			<td colspan="6"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="765" height="1"></td>
		</tr>
		<tr class="fondo_celeste">
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="20"></td>
			<td  colspan="3" class="texto_blancoL">Tejidos Blandos</td>
		</tr>
		<tr><td colspan="4" height="3"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" height="5"></td></tr>
		<tr>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
			<td class="texto_gris" width="200"><label class="texto_rojo10">(*)&nbsp;</label>Labios</td>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="10" height="1"></td>
			<td width="550" height="20" class="texto_gris">
				<textarea name="labios"  class="seccdTEXTAREA" <c:if test="${sessionScope.estado=='cerrado'|| tempPerfil!=1}">disabled</c:if>><c:out value='${sessionScope.FICHAINTRAORALTO.labios}'/></textarea>
			</td>
		</tr>
		<tr><td colspan="4" height="3"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" height="5"></td></tr>
		<tr>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
			<td class="texto_gris" width="200"><label class="texto_rojo10">(*)&nbsp;</label>Vestibulo</td>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="10" height="1"></td>
			<td width="550" height="20" class="texto_gris">
				<textarea name="vestibulo" class="seccdTEXTAREA" <c:if test="${sessionScope.estado=='cerrado'|| tempPerfil!=1}">disabled</c:if>><c:out value='${sessionScope.FICHAINTRAORALTO.vestibulo}'/></textarea>
			</td>
		</tr>
		<tr><td colspan="4" height="3"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" height="5"></td></tr>
		<tr>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
			<td class="texto_gris" width="200"><label class="texto_rojo10">(*)&nbsp;</label>Frenillos</td>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="10" height="1"></td>
			<td width="550" height="20" class="texto_gris">
				<textarea  name="frenillos" class="seccdTEXTAREA" <c:if test="${sessionScope.estado=='cerrado'|| tempPerfil!=1}">disabled</c:if>><c:out value='${sessionScope.FICHAINTRAORALTO.frenillos}'/></textarea>
			</td>
		</tr>
		<tr><td colspan="4" height="3"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" height="5"></td></tr>
		<tr>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
			<td class="texto_gris" width="200"><label class="texto_rojo10">(*)&nbsp;</label>Paladar Duro</td>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="10" height="1"></td>
			<td width="550" height="20" class="texto_gris">
				<textarea  name="paladarDuro" class="seccdTEXTAREA" <c:if test="${sessionScope.estado=='cerrado'|| tempPerfil!=1}">disabled</c:if>><c:out value='${sessionScope.FICHAINTRAORALTO.paladarDuro}'/></textarea>
			</td>
		</tr>
		<tr><td colspan="4" height="3"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" height="5"></td></tr>
		<tr>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
			<td class="texto_gris" width="200"><label class="texto_rojo10">(*)&nbsp;</label>Paladar Blando</td>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="10" height="1"></td>
			<td width="550" height="20" class="texto_gris">
				<textarea name="paladarBlando"   class="seccdTEXTAREA" <c:if test="${sessionScope.estado=='cerrado'|| tempPerfil!=1}">disabled</c:if>><c:out value='${sessionScope.FICHAINTRAORALTO.paladarBlando}'/></textarea>
			</td>
		</tr>
		<tr><td colspan="4" height="3"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" height="5"></td></tr>
		<tr>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
			<td class="texto_gris" width="200"><label class="texto_rojo10">(*)&nbsp;</label>Orofaringe</td>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="10" height="1"></td>
			<td width="550" height="20" class="texto_gris">
				<textarea name="orofaringe"  class="seccdTEXTAREA" <c:if test="${sessionScope.estado=='cerrado'|| tempPerfil!=1}">disabled</c:if>><c:out value='${sessionScope.FICHAINTRAORALTO.orofaringe}'/></textarea>
			</td>
		</tr>
		<tr><td colspan="4" height="3"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" height="5"></td></tr>
		<tr>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
			<td class="texto_gris" width="200"><label class="texto_rojo10">(*)&nbsp;</label>Lengua</td>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="10" height="1"></td>
			<td width="550" height="20" class="texto_gris">
				<textarea name="lengua"  class="seccdTEXTAREA" <c:if test="${sessionScope.estado=='cerrado'|| tempPerfil!=1}">disabled</c:if>><c:out value='${sessionScope.FICHAINTRAORALTO.lengua}'/></textarea>
			</td>
		</tr>
		<tr><td colspan="4" height="3"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" height="5"></td></tr>
		<tr>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
			<td class="texto_gris" width="200"><label class="texto_rojo10">(*)&nbsp;</label>Piso de la boca</td>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="10" height="1"></td>
			<td width="550" height="20" class="texto_gris">
				<textarea name="pisoDelaBoca"  class="seccdTEXTAREA" <c:if test="${sessionScope.estado=='cerrado'|| tempPerfil!=1}">disabled</c:if>><c:out value='${sessionScope.FICHAINTRAORALTO.pisoDelaBoca}'/></textarea>
			</td>
		</tr>
		<tr><td colspan="4" height="3"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" height="5"></td></tr>
		<tr>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
			<td class="texto_gris" width="200"><label class="texto_rojo10">(*)&nbsp;</label>Encia marginal</td>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="10" height="1"></td>
			<td width="550" height="20" class="texto_gris">
				<textarea  name="enciaMarginal"   class="seccdTEXTAREA" <c:if test="${sessionScope.estado=='cerrado'|| tempPerfil!=1}">disabled</c:if>><c:out value='${sessionScope.FICHAINTRAORALTO.enciaMarginal}'/></textarea>
			</td>
		</tr>
		<tr><td colspan="4" height="3"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" height="5"></td></tr>
		<tr>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
			<td class="texto_gris" width="200"><label class="texto_rojo10">(*)&nbsp;</label>Encia papilar</td>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="10" height="1"></td>
			<td width="550" height="20" class="texto_gris">
				<textarea  name="enciaPapilar" class="seccdTEXTAREA" <c:if test="${sessionScope.estado=='cerrado'|| tempPerfil!=1}">disabled</c:if>><c:out value='${sessionScope.FICHAINTRAORALTO.enciaPapilar}'/></textarea>
			</td>
		</tr>
		<tr><td colspan="4" height="3"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" height="5"></td></tr>
		<tr>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
			<td class="texto_gris" width="200"><label class="texto_rojo10">(*)&nbsp;</label>Encia adherida</td>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="10" height="1"></td>
			<td width="550" height="20" class="texto_gris">
				<textarea name="enciaAdherida"  class="seccdTEXTAREA" <c:if test="${sessionScope.estado=='cerrado'|| tempPerfil!=1}">disabled</c:if>><c:out value='${sessionScope.FICHAINTRAORALTO.enciaAdherida}'/></textarea>
			</td>
		</tr>
		<tr><td colspan="4" height="3"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" height="5"></td></tr>
		<tr>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="5" height="1"></td>
			<td class="texto_gris" width="200"><label class="texto_rojo10">(*)&nbsp;</label>Hendidura Gingival</td>
			<td><img src="<%=request.getContextPath()%>/images/pxtrans.gif" width="10" height="1"></td>
			<td width="550" height="20" class="texto_gris">
				<textarea  name="hendiduraGingival" class="seccdTEXTAREA" <c:if test="${sessionScope.estado=='cerrado'|| tempPerfil!=1}">disabled</c:if>><c:out value='${sessionScope.FICHAINTRAORALTO.hendiduraGingival}'/></textarea>
			</td>
		</tr>
		<tr><td colspan="4" height="3"><img src="<%=request.getContextPath()%>/images/pxtrans.gif" height="20"></td></tr>
		<tr><td colspan="4" height="18" align="right">
		<c:if test="${sessionScope.estado!='cerrado'}">
			<a href="javascript:grabar()" class="boton_naranja" style="height:18">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<bean:message key="boton.grabar"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
		</c:if>	
			<a href="javascript:volverArchivo()" class="boton_naranja" style="height:18">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<bean:message key="boton.volver"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
		</td></tr>
		</table>
	</td>
</tr>
</table>
<INPUT type="hidden" name="method">
<INPUT type="hidden" name="operacion" value="<c:out value='${sessionScope.operacion}'/>">
<INPUT type="hidden" name="codigo" value='<c:out value="${sessionScope.tempHC}"/>'>
<INPUT type="hidden" name="filehc" value="<c:out value='${sessionScope.filehc}'/>">
<INPUT type="hidden" name="optCampo">
</form>
</body>
</html>

